module.exports = {
  title: "茂茂个人博客",
  description: "开心最重要呀",
  base: "/blog/",
  plugins: [
    [
      "@vuepress-reco/vuepress-plugin-kan-ban-niang",
      {
        theme: [
          "miku",
          "whiteCat",
          "haru1",
          "haru2",
          "haruto",
          "koharu",
          "izumi",
          "shizuku",
          "wanko",
          "blackCat",
          "z16",
        ],
        clean: false,
        messages: {
          welcome: "欢迎来到我的博客",
          home: "心里的花，我想要带你回家。",
          theme: "好吧，希望你能喜欢我的其他小伙伴。",
          close: "你不喜欢我了吗？痴痴地望着你。",
        },
        messageStyle: { right: "68px", bottom: "290px" },
        width: 250,
        height: 320,
      },
    ],
  ],
  head: [
    [
      "link",
      {
        rel: "icon",
        href: "https://pan.zealsay.com/blog/favicon.ico",
      },
    ],
    [
      "meta",
      {
        name: "viewport",
        content: "width=device-width,initial-scale=1,user-scalable=no",
      },
    ],
    [
      "script",
      {},
      `
          var _hmt = _hmt || [];
          (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?b0aae218897fa9d8a9f76e9a77e0b3c6";
            var s = document.getElementsByTagName("script")[0]; 
            s.parentNode.insertBefore(hm, s);
          })();
        `,
    ], //百度统计
  ],
  locales: {
    "/": {
      lang: "zh-CN",
    },
  },
  // "theme": "reco",
  themeConfig: {
    nav: [
      {
        text: "主页",
        link: "/",
        icon: "reco-home",
      },
      {
        text: "时间轴",
        link: "/timeline/",
        icon: "reco-date",
      },
      {
        text: "关于",
        link: "/about/",
        icon: "reco-account",
      },
    ],
    type: "blog",
    sidebar: false,
    blogConfig: {
      category: {
        location: 2,
        text: "博客",
      },
      tag: {
        location: 3,
        text: "标签",
      },
    },
    friendLink: [
      {
        title: "B站",
        desc: "一个不正经的学习平台",
        logo: "https://pan.zealsay.com/avatar/20200606105310570000000.jpg",
        link: "https://www.bilibili.com/",
      },
      {
        title: "gitee",
        desc: "一个国内好用的代码库",
        logo: "https://pan.zealsay.com/blog/logo.png",
        link: "https://gitee.com/",
      },
      {
        title: "CSDN",
        desc: "CSDN博客",
        logo: "/csdn.png",
        link: "https://www.csdn.net/",
      },
      {
        title: "Echars",
        desc: "Echars示例，可视化工具",
        logo: "/logo.png",
        link: "https://echarts.apache.org/examples/zh/index.html",
      },
      {
        title: "高德开放平台",
        desc: "丰富的地图产品与服务，可开源服务",
        logo: "/logo.png",
        link: "https://lbs.amap.com/",
      },
    ],
    valineConfig: {
      appId: "xxx", // your appId
      appKey: "xxx", // your appKey
      avatar: "", //
      enableQQ: true, //启用昵称框自动获取QQ昵称和QQ头像
      requiredFields: ["nick", "mail"], //设置必填项
    },
    logo: "/logo.png",
    // "huawei": true, //首页出现华为文案
    search: true,
    searchMaxSuggestions: 10,
    lastUpdated: "Last Updated",
    author: "茂茂",
    authorAvatar: "/logo.png",
    record: "备案号", //icp备案
    startYear: "2019",
    info: "一个爱好自由，佛系生活，却不甘寂寞的猫",
    socials: {
      github: "https://github.com/wangmaoming", //github
      gitlub: false, //gitlub
      gitee: "https://gitee.com/wangmaoming", //gitee
      jianshu: "https://www.jianshu.com/u/18daad46d7e5", //简书
      zhihu: "https://www.zhihu.com/people/xing-fu-de-zi-jie", //知乎
      toutiao: false, //知乎
      juejin: "https://juejin.cn/user/1926799715731448", //掘金
      segmentfault: false, //思否
      csdn: false, //CSDN
      wechat: "wmaomao0218", //微信
      qq: "1072445948", //QQ
    },
    mottos: [
      {
        zh: "愿你保持初心和善良,笑里尽是温暖与坦荡。",
        en: "May you keep your original heart and kindness, and smile with warmth and magnanimity.",
      },
      {
        zh: "爱你所爱",
        en: "Love what you love",
      },
      {
        zh: "真正的梦就是现实的彼岸。",
        en: "Real dream is the other shore of reality.",
      },
      {
        zh: "不为模糊不清的未来担忧，只为清清楚楚的现在努力。",
        en: "Don't worry about the vague future, just strive for the clear present.",
      },
      {
        zh: "与其装腔作势企图影响别人，不如咬牙切齿狠命修理自己。",
        en: "Rather than pretending to influence others, it's better to grind your teeth and repair yourself.",
      },
      {
        zh: "上天是公平的，只要努力就会有收获，否则就是你不够努力。",
        en: "God is fair, as long as effort will include results, otherwise is you hard enough.",
      },
      {
        zh: "人生没有后悔，我们只能尽力去不让自己后悔。",
        en: "Life without regret, we can only do our best to not to regret.",
      },
    ],
    covers: [
      "https://pan.zealsay.com/zealsay/cover/7.jpg",
      "https://pan.zealsay.com/zealsay/cover/1.jpg",
      "https://pan.zealsay.com/zealsay/cover/2.jpg",
      "https://pan.zealsay.com/zealsay/cover/3.jpg",
      "https://pan.zealsay.com/zealsay/cover/4.jpg",
      "https://pan.zealsay.com/zealsay/cover/5.jpg",
      "https://pan.zealsay.com/zealsay/cover/6.jpg",
    ],
    codeTheme: "tomorrow",
  },
  markdown: {
    lineNumbers: false,
  },
  plugins: [
    [
      //先安装在配置， npm install @vuepress-reco/vuepress-plugin-kan-ban-niang --save
      "@vuepress-reco/vuepress-plugin-kan-ban-niang",
      {
        theme: [
          "blackCat",
          "whiteCat",
          "haru1",
          "haru2",
          "haruto",
          "koharu",
          "izumi",
          "shizuku",
          "wanko",
          "miku",
          "z16",
        ],
        clean: false,
        messages: {
          welcome: "我是王茂铭谢谢你的关注 ",
          home: "心里的花，我想要带你回家。",
          theme: "好吧，希望你能喜欢我的其他小伙伴。",
          close: "再见哦",
        },
        width: 240,
        height: 352,
      },
    ],
    [
      //鼠标点击特效 先安装在配置， npm install vuepress-plugin-cursor-effects --save
      "cursor-effects",
      {
        size: 3, // size of the particle, default: 2
        shape: ["star"], //// 点击形状: 'star', 'star' | 'circle'
        zIndex: 999999999, // z-index property of the canvas, default: 999999999
      },
    ],
    [
      //彩带背景 先安装在配置， npm install vuepress-plugin-ribbon --save
      "ribbon",
      {
        size: 90, // width of the ribbon, default: 90
        opacity: 0.8, // opacity of the ribbon, default: 0.3
        zIndex: -1, // z-index property of the background, default: -1
      },
    ],
    [
      "vuepress-plugin-nuggets-style-copy",
      {
        copyText: "复制代码",
        tip: {
          content: "复制成功!",
        },
      },
    ],
    ["vuepress-plugin-boxx"],
    [
      "meting",
      {
        meting: {
          // 歌单地址-> 如果输入可忽略server|type|mid
          // 但是不知道为什么不写上这三个会报错, 所以我都写上了
          auto: "https://music.163.com/#/discover/toplist?id=3778678", // 音乐列表地址
          // 当前服务为netease -> 网易
          server: "netease",
          // 类型为歌单
          type: "playlist",
          // 歌单id
          mid: "5312894314",
        },
        aplayer: {
          // 歌单为随机
          order: "random",
          // 0为不显示歌词
          lrcType: 1,
          // 音量
          volume: 0.2,
          // 开启迷你模式
          mini: true,
          // 自动播放
          autoplay: true,
        },
      },
    ],
  ],
  // configureWebpack: (config, isServer) => {
  //   if (!isServer) {
  //     // 修改客户端的 webpack 配置
  //     config.output.publicPath = config.mode === 'production'
  //       ? 'https://pan.zealsay.com/blog/' // sample/essays 打包的默认路径为 ‘_nuxt’ 或者可以指定cdn 域名
  //       : '/';
  //     config.output.filename = "assets/js/[name].js";
  //   }
  // }
};